package com.echat.business.book.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 评论回复表
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
@TableName("echo_business_discussion_reply")
public class DiscussionReply extends Model<DiscussionReply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 回复内容
     */
    private String content;
    /**
     * 回复评论人的userId
     */
    private Integer userId;
    /**
     * 回复创建时间
     */
    private Date createTime;
    /**
     * 关联评论表  echo_business_discussion 中的 id
     */
    private Integer discussionId;
    /**
     * 回复 删除标记 0  正常 | 1 删除 
     */
    private Integer delflag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDiscussionId() {
        return discussionId;
    }

    public void setDiscussionId(Integer discussionId) {
        this.discussionId = discussionId;
    }

    public Integer getDelflag() {
        return delflag;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DiscussionReply{" +
        ", id=" + id +
        ", content=" + content +
        ", userId=" + userId +
        ", createTime=" + createTime +
        ", discussionId=" + discussionId +
        ", delflag=" + delflag +
        "}";
    }
}
